﻿using Cocbook_DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sale_and_manage
{
    public class OrderView
    {
        public Int32 OrderID { get; set; }
        public Int32 CMND { get; set; }
        public DateTime Date { get; set; }
        public string Address { get; set; }
        public double Total { get; set; }
        public double ShipCost { get; set; }
        public bool Transfered { get; set; }
        public int CheckOutType { get; set; }

        public OrderView(Order order)
        {
            OrderID = order.OrderID;
            CMND = order.Customer.CMND;
            Date = order.Date;
            Address = order.Address;
            Total = order.Total;
            ShipCost = order.ShipCost;
            Transfered =order.Transfered;
            CheckOutType = order.CheckOutType;
        }

    }
}
